home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Alles Voor Internet / Tout Pour Internet
/
alles voor internet.iso
/
MacInternet™
/
Info
/
mac-to-workstation.txt
< prev
next >
Wrap
Text File
|
1992-05-14
|
7KB
|
182 lines
Subject: How To Connect A Mac To A Workstation
Date: Thu, 14 May 92 10:41:02 -0400
From: Carl Hommel <carlton@apollo.hp.com>
How To Connect A Mac To A Workstation
May 14, 1992
There are two ways to connect a Mac to a workstation: via Ethernet, or
via a serial line. Ethernet is faster, but more expensive. All of the
software described herein is shareware or public domain. See below for
where to get it.
ETHERNET
As you would expect with computers, there are several ways to hook your
Mac into an Ethernet.
1. Buy an Ethernet card, and put it in your Mac II, SE, or SE/30.
2. Buy an Ethernet box, and hook it up to any Mac with a SCSI port.
3. Buy a LocalTalk to Ethernet converter box.
None of these methods are simple; after you buy the hardware you need
to decide whether you want to buy MacTCP, get an IP number from your
network administrator, use the Network and Chooser control panels
correctly, etc. Eric Behr has written a useful guide to MacTCP; see
below on where to get it. The rest of this section assumes that this
has been done, and you want to know how to use telnet and ftp.
There are two versions of NCSA Telnet, one for use on a Mac with MacTCP
installed, and one without. Both have identical functionality. Make
sure you use the correct one. If you have MacTCP installed, use Fetch
for ftp, as it is more Mac-like.
Using NCSA Telnet for a telnet session:
1. Find and double click on the icon. Check the Apple Menu.
2. The program should briefly display an "About" window, and then
the menus will change.
3. Pull down the "File" menu, and select "Open". A dialog box will
appear. Accept the defaults by hitting return.
4. If the network connection is broken, you will get an error message
"could not connect with host". Go ask for help. If things are ok,
then you will see a 24x80 window, with a login prompt.
5. Log in using your usual account name and password. You are now
logged into your Unix workstation, using a vt100 emulator.
Using NCSA Telnet for a ftp session:
If you do not have MacTCP, you will need to use the builtin ftp.
1. Pull down the "File" menu, and select "transfer directory". The
standard SFOpen dialog box will appear. Set the directory on the
Mac that you want to move files into and out of.
2. Pull down the "File" menu, and select "Smart MacBinary".
3. Change to the Domain/OS directory that you wish to transfer files in.
% cd //foo/bar/macintosh/ftp_stuff
4. Type in
% ftp
but do not hit <RETURN>.
5. Pull down the "Connect" menu, and select "send IP address". The
line in your login window should now look something like
% ftp 15.nn.nn.nn
Now, hit <RETURN>.
6. The Unix ftp program will try to open a ftp session with your Mac.
Just hit <RETURN> when it asks for login and password.
7. You are now running a ftp session. See the ftp(1) man page for
helpful advice. You will usually want to type
ftp> prompt
ftp> binary
To transfer files from the Unix filesystem to your Macintosh, type
ftp> mput file1 binary.bin file2 file3
To transfer files from the Macintosh to your Unix filesystem, type
ftp> mget msword_document excel_spreadsheet file1 file2
8. When you are done, be sure to log out. You are not always
automatically logged out when the Mac is shutdown.
Using Fetch for a ftp session:
1. Double click on the Fetch icon.
2. A dialog box will ask you for the following information:
o internet address of the machine you want to log into
o login you will use
o password you will use
If the machine you are connecting to supports anonymous ftp, you
can use that. Otherwise, use your login name and password.
3. The Fetch program logs in, and gets a list of files in the top
level directory. It presents this in a very familiar looking
dialog box.
To transfer files from the Unix filesystem to your Macintosh, just
highlight those files, and push the "tranfer" button.
To transfer files from the Macintosh to your Unix filesystem, use
the pull-down menu.
You can use the menu to transfer entire directories with all their
contents. By default, Fetch recognizes MacBinary files, and will
automatically uncompress Stuffit archives.
SERIAL LINE
For people willing live with a transfer rate of about 1.5K cps, do the
following:
Hardware
1. Get (or make) a null modem Mac-to-RS232 cable.
2. Connect the modem port in the back of the Mac (the one with
the phone symbol) with the tty01 port of your workstation.
3. Edit the file /sys/node_data/etc/ttys , and change the line
tty01 none dumb off secure
to
tty01 "/etc/getty 19200-baud" vt100 on secure
4. (As root), send a HUP signal to the init process, by
# kill -1 1
5. Check and make sure the process is running:
bsd4.3 # ps ax | grep tty01
or
sys5.3 # ps -ef | grep tty01
7392 ? S 0:00 - 19200-baud tty01
Note for PowerBook users: You will have to select the "external" modem
port in your Portable Control Panel.
Software:
1. Find a Mac terminal emulator that supports the zterm protocol.
The directions below are for ZTerm.
2. Get the Unix zmodem package, and compile it. It is available
from sumex.stanford.edu as /info-mac/unix/zmodem-part[1234].shar.
This will give you the rz and sz programs.
Mac Usage:
Double click on the ZTerm icon. Set the baud rate to 19.2K. The other
default settings are harmless. You should now see a login prompt, so
login.
Modem usage:
If you are dialing in over a phone line, then use a modem Mac-to-RS232
cable. Set the ZTerm baud rate to whatever your telecommunications
equipment expects.
To transfer files from the Unix filesystem to your Macintosh, type
% sz file1 binary.bin file2 file3
It will respond
Sending in Batch Mode
and wait. The ZTerm program will catch the magic zmodem characters,
and put the file onto your Mac disk.
To transfer files from the Macintosh to your Unix filesystem, just type
% rz
It will respond
rz ready. To begin transfer, type "sz file ..." to your modem program
The pulldown menu item "zmodem transfer" will give you the standard
dialog box to select Mac files.
There may be occasional problems with the interaction between sz and
your network. If you are getting a throughput of 3%, rather than
75-90%, try setting the Zmodem parameters pulldown menu so that it uses
a size of 1024 instead of automatic.
An incredibly useful Unix program is mcvert. Mcvert converts binhexed
*.hqx files into MacBinary *.bin files. The intellegent file transfer
programs will take the MacBinary file make it a normal Mac file - no
need to run binhex!
SOFTWARE INFORMATION
>From sumex.stanford.edu:
/info-mac/comm/fetch-206.hqx the Fetch ftp program
/info-mac/comm/zterm-09.hqx the ZTerm terminal emulator
/info-mac/unix/mcvert-165.shar the Unix .hqx -> .bin converter
/info-mac/unix/zmodem-part[1-4].shar the Unix zmodem programs
/info-mac/report/mac-tcp-info.txt the MacTCP guide
>From ftp.ncsa.uiuc.edu
/Mac/Telnet/Telnet2.* the NCSA Telnet program
Carl Hommel
carlton@apollo.hp.com